import Mock from "mockjs"
let List = [];
export default {
  getStatisticalData:()=>{
    for(let i = 0;i<7;i++){
      List.push(
        Mock.mock({
          苹果:Mock.Random.float(100,8000,0,0),
          vivo:Mock.Random.float(100,8000,0,0),
          oppo:Mock.Random.float(100,8000,0,0),
          魅族:Mock.Random.float(100,8000,0,0),
          三星:Mock.Random.float(100,8000,0,0),
          小米:Mock.Random.float(100,8000,0,0),
        })
      )
    }
    return{
      code:200,
      data:{
        // 饼状图
        videoData:[
          {
            name:"oppo",
            todayBuy:100,
            monthBuy:300,
            totalBuy:800,
          },{
            name:"vivo",
            todayBuy:100,
            monthBuy:300,
            totalBuy:800,
          },{
            name:"苹果",
            todayBuy:100,
            monthBuy:300,
            totalBuy:800,
          },{
            name:"oppo",
            todayBuy:100,
            monthBuy:300,
            totalBuy:800,
          },{
            name:"vivo",
            todayBuy:100,
            monthBuy:300,
            totalBuy:800,
          },{
            name:"苹果",
            todayBuy:100,
            monthBuy:300,
            totalBuy:800,
          },
        ]
      }
    }
  }
}